<?php 
/* SVN FILE: $Id$ */
/* Profesional Test cases generated on: 2009-12-06 01:12:18 : 1260075978*/
App::import('Model', 'Profesional');

class ProfesionalTestCase extends CakeTestCase {
	var $Profesional = null;
	var $fixtures = array('app.profesional', 'app.persona', 'app.tipo', 'app.agenda_persona', 'app.profesional_especialidad', 'app.profesional_prevision', 'app.profesional_servicio');

	function startTest() {
		$this->Profesional =& ClassRegistry::init('Profesional');
	}

	function testProfesionalInstance() {
		$this->assertTrue(is_a($this->Profesional, 'Profesional'));
	}

	function testProfesionalFind() {
		$this->Profesional->recursive = -1;
		$results = $this->Profesional->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Profesional' => array(
			'id'  => 1,
			'persona_id'  => 1,
			'tipo_id'  => 1,
			'estado'  => 'Lorem ipsum dolor sit ame',
			'curriculum'  => 'Lorem ipsum dolor sit ame'
		));
		$this->assertEqual($results, $expected);
	}
}
?>